-- GENERATED SPELL FOR [Thane Illskar] --


function spell0_30475(pUnit, Event) --@Blast Wave,Self--
pUnit:FullCastSpellOnTarget(17145,pUnit)
pUnit:RegisterEvent('Sorts_30475', 6257, 1)
end

function spell1_30475(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(19816,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30475', 3000, 1)
end

function spell2_30475(pUnit, Event) --@Frostfire Bolt,n/a--
pUnit:FullCastSpellOnTarget(51779,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30475', 12000, 1)
end

function spell3_30475(pUnit, Event) --@Rain of Fire,n/a--
pUnit:FullCastSpellOnTarget(20754,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30475', 9000, 1)
end

function Sorts_30475(pUnit, Event)
local choix_sorts_30475 = math.random(0, 3)
if choix_sorts_30475 == 0 then
pUnit:RegisterEvent('spell0_30475', 1, 1)
end
if choix_sorts_30475 == 1 then
pUnit:RegisterEvent('spell1_30475', 1, 1)
end
if choix_sorts_30475 == 2 then
pUnit:RegisterEvent('spell2_30475', 1, 1)
end
if choix_sorts_30475 == 3 then
pUnit:RegisterEvent('spell3_30475', 1, 1)
end
end

function mob30475_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30475', math.random(1500, 3000), 1)
end

function mob30475_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30475_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30475_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30475, 1, 'mob30475_Action')
RegisterUnitEvent(30475, 2, 'mob30475_Leave')
RegisterUnitEvent(30475, 3, 'mob30475_Kill')
RegisterUnitEvent(30475, 4, 'mob30475_Die')
